<?php

Yii::import('zii.widgets.CPortlet');

class UserMenu extends CPortlet
{
        private $adminName = 'demo';
        
        public function getAdmin($username){

            if($username == $this->adminName){
             return TRUE;
            }else{
             return FALSE;
            }
        }

        public function init()
	{
		$this->title=CHtml::encode('Ações');
                
		parent::init();
	}

	protected function renderContent()
	{
		$this->render('userMenu');
	}
}